import { RouteRecordRaw } from "vue-router";

// 帐号管理模块
const tableRouter: Array<RouteRecordRaw> = [
  {
    path: "/cpyswk",
    component: () => import("@/layouts/index.vue"),
    redirect: "/cpyswk/mgr",
    meta: {
      icon: "MessageBox",
      title: "找工友"
    },
    children: [
      {
        path: "/cpyswk/pol",
        name: "cpyswkPol",
        component: () => import("@/views/cpyswk/pol/index.vue"),
        meta: {
          icon: "menu",
          title: "人才库",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyswkPol"
        },
        children: []
      },
      {
        path: "/cpyswk/mgr",
        name: "cpyswkMgr",
        component: () => import("@/views/cpyswk/mgr/index.vue"),
        meta: {
          icon: "menu",
          title: "下载的简历",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyswkMgr"
        },
        children: []
      },
      {
        path: "/cpyswk/interested",
        name: "cpyswkInterested",
        component: () => import("@/views/cpyswk/interested/index.vue"),
        meta: {
          icon: "menu",
          title: "对我感兴趣",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyswkInterested"
        },
        children: []
      },
      {
        path: "/cpyswk/apply",
        name: "cpyswkApply",
        component: () => import("@/views/cpyswk/apply/index.vue"),
        meta: {
          icon: "menu",
          title: "收到的简历",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyswkApply"
        },
        children: []
      },
      {
        path: "/cpyswk/view",
        name: "cpyswkView",
        component: () => import("@/views/cpyswk/view/index.vue"),
        meta: {
          icon: "menu",
          title: "浏览记录",
          keepAlive: true,
          requiresAuth: true,
          key: "cpyswkView"
        },
        children: []
      }
    ]
  }
];
export default tableRouter;
